<template>
  <main>
      <nav>
        <ul>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
          <li>串香</li>
        </ul>  
      </nav>
      <aside>
        <div class="item">
          <div class="pic">

          </div>
          <div class="txt">
            <h2>城北香港城</h2>
            <p>城南古楼</p>
          </div>  
        </div>
        <div class="item">
          <div class="pic">

          </div>
          <div class="txt">
            <h2>城北香港城</h2>
            <p>城南古楼</p>
          </div>  
        </div>
        <div class="item">
          <div class="pic">

          </div>
          <div class="txt">
            <h2>城北香港城</h2>
            <p>地处繁华地带商业中心地带,上下双层loft,可做住宅也可做办公场地,房东诚心出租</p>
          </div>  
        </div> 
        <div class="item">
          <div class="pic">
          </div>
          <div class="txt">
            <h2>城北香港城</h2>
            <p>城南古楼</p>
          </div>  
        </div> 
        <div class="item">
          <div class="pic">

          </div>
          <div class="txt">
            <h2>城北香港城</h2>
            <p>城南古楼</p>
          </div>  
        </div> 
        <div class="item">
          <div class="pic">

          </div>
          <div class="txt">
            <h2>城北香港城</h2>
            <p>城南古楼</p>
          </div>  
        </div> 
        <div class="item">
          <div class="pic">

          </div>
          <div class="txt">
            <h2>城北香港城</h2>
            <p>城南古楼</p>
          </div>  
        </div> 
        <div class="item">
          <div class="pic">

          </div>
          <div class="txt">
            <h2>城南鼓楼</h2>
            <p>老城区商业中心</p>
          </div>  
        </div> 
      </aside>
  </main>
</template>

<script>
// @ is an alias to /src

export default {
  name: 'Home',
}
</script>
<style lang="less">
//混入加继承
@import "index.less";
main{
  position: fixed;
  top:3rem;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  background-color: royalblue
}
nav{
  position: fixed;
  width: 1.6rem;
  top:3rem;
  bottom: 1.5rem;
  background-color: greenyellow;
}
aside{
  position: fixed;
  left: 1.6rem;
  right: 0;
  top: 3rem;
  bottom: 1.5rem;
  background-color: green
}
nav li{
  font-size: .24rem;
  height: 0.6rem;
  line-height: .6rem;
  display: flex;
  justify-content: center;
}
nav, aside{
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch
}
</style>
